$color:#F4645F,#6B7280,#232E3D;
@mixin center {
    display: flex;
    justify-content: center;
    align-items: center;
}

body{
    background-color: #FFFEFC;
    border-top: solid 4px nth($color,1);
}
:root{
    font-size: 15px;
}
hr{
    height: 1px;
    border: none;
    background-color: #C5C9CB;
}


.navbar{
    @include center(); 
    background-color:white;
    padding: 1rem 0;
    & >.logo{
        @include center(); 
        i.fa{
            font-size: 1.5rem;
            font-weight: bolder;
            color:nth( $color,1);
            padding-right: 5px;
        }
        font-weight: bolder;
        font-size: 1.2rem;
        color:nth( $color,1);
    }
    & > nav{
        margin-right: auto;
        margin-left: 1rem;
       @include center();
        a{
            text-decoration: none;
            color: nth($color, 2 );
            font-size: 1.1rem;
            font-weight: bolder;
            padding: 0 0.5rem;
        }
    }
    & > .member{
        display: flex;
        & >.message{
            @include center();
            margin-right: 1rem;
            // position: relative;
            i.fa{
                font-size: 1.3rem;
            }
            span{
                background-color: nth($color, 1 );
                border-radius: 0.2rem;
                color: white;
                padding: 0.15rem 0.3rem;
                font-size: 0.5rem;
                position: relative;
                top: -0.5rem;
                left:-0.5rem;
            }
        }
        & >.user{
            @include center();
            position: relative;
            padding-right: 2rem;
            img{
                width: 1.6rem;
                height: 1.6rem;
                border-radius: 0.2rem;
                margin-right: 0.5rem
            }
            & >.icon{
                label{
                    cursor: pointer;
                    @include center();
                    span{
    
                    }
                    i.fa{
                        position: relative;
                        top: -0.2rem;
                        left: 0.2rem;
                    }
                }  
            }
            input#toggle-menu:checked ~nav{
                display: grid;
            }
            nav{
                position: absolute;
                top: 1.8rem;
                right: 0;
                left: 0;
                display: none;
                grid-auto-flow: row;
                border: solid 1px #C5C9CB;
                padding: 0.5rem 0;
                border-radius: 0.3rem;
                a{
                    text-decoration: none;
                    padding: 0.5rem 1rem;
                    font-size: 1rem;
                    color: nth($color ,3 );
                }
            }
        }
    }
}
